import http from '@/lib/http'

export interface GoodQuery {
  current?: number
  size?: number
  name?: string
  categoryId?: number
}

export function fetchGoods(params: GoodQuery = {}) {
  return http.get('/good', { params })
}

export function fetchGoodDetail(id: string | number) {
  return http.get(`/good/${id}`)
}


